package com.management.mapper;


import com.management.po.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Insert("insert into user values(#{userId},#{password},#{userName},#{userSex})")
    public int saveUser(User user);

    @Select("select * from user where userId=#{userId} and password=#{password}")
    public User getUserByIdByPass(String userId,String password);
}
